package net.jjjshop.common.entity.supplier;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 商家用户记录表
 *
 * @author jjjshop
 * @since 2022-10-17
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(name = "SupplierUser对象")
public class SupplierUser implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键id")
    @TableId(value = "supplier_user_id", type = IdType.AUTO)
    private Integer supplierUserId;

    @Schema(description = "绑定的用户id")
    private Integer userId;

    @Schema(description = "用户名")
    private String userName;

    @Schema(description = "盐值")
    private String salt;

    @Schema(description = "登录密码")
    private String password;

    @Schema(description = "姓名")
    private String realName;

    @Schema(description = "是否为超级管理员0不是,1是")
    private Integer isSuper;

    @Schema(description = "关联供应商id")
    private Integer shopSupplierId;

    @Schema(description = "0=显示1=伪删除")
    private Integer isDelete;

    @Schema(description = "tenantId")
    private Integer tenantId;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "更新时间")
    private Date updateTime;

}
